<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
    // function Car(plate,owner) {
    //     this.plate = plate;
    //     this.owner = owner;
    // }
    
    // function Job() {};
    // Job.prototype.company = "myCompany";
    // Job.prototype.salary = 12000;
    
    // function mainJs(a,b,c,d,e) {
    //     //请在此处编写代码
    //     /*********bigin*********/
    //     var student = {
    //         name: a,
    //         gender: b
    //     }
    //     var myCar = new Car(c, d);
    //     var myJob = new Job();
    //     myJob.company = e;
    //     /*********end*********/
    //     return student.name+student.gender+myCar.plate+myCar.owner+myJob.company;
    // }

    var store = {
	name:"Luma Restaurant",
	location:"No 22,Cot Road",
	accountant:"Vivian Xie",
	day1:3200,
	day2:3200,
	day3:3200,
	day4:3200,
	day5:3200,
	day6:3200,
	day7:3200,
	day8:3200,
	day9:3200,
	day10:3200
}
function reviseAttribute(reviser,date,attValue) {
    //Convert string to integer
    attValue = parseInt(attValue);
    //请在此处编写代码
    /*********begin*********/
    store['day'+date] = attValue;
    store.accountant = reviser;

	/*********end*********/
    var totalSales =  store["day1"]+store["day2"]+store["day3"]+store["day4"]+store["day5"]+store["day6"]+store["day7"]+store["day8"]+store["day9"]+store["day10"];
    return totalSales+store.accountant;
}
    </script>
</body>
</html>